package com.xr.miniprogram.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xr.miniprogram.domain.MiniProgramOrderStatus;
import com.xr.miniprogram.mapper.MiniProgramOrderMapper;
import com.xr.miniprogram.mapper.MiniProgramOrderStatusMapper;
import com.xr.miniprogram.service.IMiniProgramOrderStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class MiniProgramOrderStatusServiceImpl extends ServiceImpl<MiniProgramOrderStatusMapper, MiniProgramOrderStatus> implements IMiniProgramOrderStatusService
{
    @Resource
    private MiniProgramOrderStatusMapper miniProgramOrderStatusMapper;

    @Override
    public MiniProgramOrderStatus selectById(Long orderStatusId) {
        return this.getById(orderStatusId);
    }

    @Override
    public List<MiniProgramOrderStatus> getTypeList() {
        return miniProgramOrderStatusMapper.selectTypeList();
    }

    @Override
    public List<MiniProgramOrderStatus> getStatusTitleList() {
        return miniProgramOrderStatusMapper.selectTitleList();
    }
}
